import request from '@/utils/request'

export function purchaseDetailList(params) {
  return request({
    url: '/ware/purchaseDetail/find',
    method: 'get',
    params
  })
}

export function getPurchaseDetail(id) {
  return request({
    url: `/ware/purchaseDetail/getById/${id}`,
    method: 'get',
  })
}

export function savePurchaseDetail(data) {
  return request({
    url: '/ware/purchaseDetail/save',
    method: 'post',
    data
  })
}

export function updatePurchaseDetail(data) {
  return request({
    url: '/ware/purchaseDetail/update',
    method: 'post',
    data
  })
}

export function deletePurchaseDetail(ids) {
  return request({
    url: '/ware/purchaseDetail/delete',
    method: 'post',
    data: ids
  })
}

